/**
 * @author aidenquan
 *         Created by junlintianxia on 2021/07/18.
 *         //泛型类型拥有的每个类型形参都需要一个*，现在你可以认为它就是 拥有未知类型实参的泛型类型
 */
fun main(arg: Array<String>) {
    println(isA<String>("abc"))
    println(isA<String>(123))
}
inline fun <reified T> isA(value: Any) = value is T

//将会在编译时抛出 "Cannot check for instance of erased type : T" 的异常
//fun <T> isA(value : Any) = value is T